<div id="form"></div>
<script>
var frm=$("##form").ajajform({
	header: null,
	submit: {
		url: '#action#',
		value: "Сохранить",
		ajaj: true,
		params: {mode: "save",datasource_id: '#Q:datasource_id#',ajaj: 1}
	}
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "filename",
	label: "Источник данных",
	value: "#datasource/filename#"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "type_id",
	label: "Тип источника",
	value: "#datasource/type_name#"
});
frm.ajajform("insertWidget",null,null,{
	type: "label",
	name: "original_body",
	label: "Оргигинальный код",
	value: "<pre>#JS:datasource/original_body#</pre>",
	html: true
});
frm.ajajform("insertWidget",null,null,{
	type: "textareaedit",
	name: "body",
	label: "Код",
	value: "#JS:datasource/body#"
});
</script>
